/*
 * @Author: czy
 * @Date: 2021-04-23 16:10:37
 * @LastEditTime: 2021-05-21 14:59:16
 */
#ifndef __VGA_H__
#define __VGA_H__

// VGA properties.
#define vga_base 0xB8000
#define ROW 25
#define COL 80

// Cursor properties
#define index_port 0x3D4
#define data_port 0x3D5
#define row_port 0xE
#define col_port 0xF

// Control character properties
#define NEWLINE COL
#define TAB 8

typedef signed short int int16;

void vga_clear(void);
void vga_put_char(char ch);
int vga_put_chars(char* str);
void vga_offset(int offset);
void vga_gotoxy(int x, int y, char *str);

#endif
